<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户展示页面</title>
</head>
<body>
	<form action="" method="post">
		<table border="1px" align="center">
			<tr align="center">
				<td>编号</td>
				<td>部门</td>
				<td>姓名</td>
				<td>年龄</td>
				<td>电话</td>
				<td>头像</td>
				<td colspan="2">操作</td>
			</tr>
			<c:forEach items="${users }" var="u" varStatus="status">
				<tr align="center">
					<td>${status.index+1}</td>
					<td>${u.dept.d_name }</td>
					<td>${u.u_name }</td>
					<td>${u.u_age }</td>
					<td>${u.u_tel }</td>
					<td><img src="${pageContext.request.contextPath }/${u.u_img }"
						height="50" width="50"></td>
					<td><a
						href="${pageContext.request.contextPath }/user/remove.action?id=${u.u_id}"><input
							type="button" value="删除"></a></td>
					<td><a
						href="${pageContext.request.contextPath }/user/toUpdate.action?id=${u.u_id}"><input
							type="button" value="修改"></a></td>
				</tr>
			</c:forEach>
			<tr>
				<td colspan="8" align="center"><a
					href="${pageContext.request.contextPath }/user/toAdd.action"><input
						type="button" value="添加"></a></td>
			</tr>
		</table>
	</form>
</body>
</html>